package cn.com.bluemoon.daps.api.model;

import cn.com.bluemoon.daps.api.model.factory.RemoteModelMetadataMappingServiceFactory;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiModel;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

@FeignClient(value = DapsApiModel.SERVICE, fallbackFactory = RemoteModelMetadataMappingServiceFactory.class)
@RequestMapping(DapsApiModel.BASE_URI + DapsApiModel.API_MODEL_METADATA_MAPPING)
@ApiIgnore
public interface RemoteModelMetadataMappingService {

    @PostMapping("/getModelSystemIds")
    @ApiOperation(value = "根据多个物理表系统ID获取模型表ID信息")
    ResultBean<Map<String, String>> getModelSystemIds(@RequestBody List<String> tableSystemIdList);
}
